package com.jiangroom.feign.service.fallback;

import com.jiangroom.feign.domain.User;
import com.jiangroom.feign.service.HelloService;

/**
 * Hystrix服务降级
 */
public class HelloServiceFallback implements HelloService {
    @Override
    public String hello() {
        return "error";
    }

    @Override
    public String hello(String name) {
        return "error";
    }

    @Override
    public User hello(String name, Long id) {
        return new User(0L, "未知");
    }

    @Override
    public String hello(User user) {
        return "error";
    }
}
